// pages/index/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    shuoming: [

    ],
    array: [{
        key: 1,
        message: '乾代表天',
      },
      {
        key: 2,
        message: '坤代表地'
      },
      {
        key: 3,
        message: '水雷屯卦'
      },
      {
        key: 4,
        message: '山水蒙卦'
      },
      {
        key: 5,
        message: '水天需卦'
      },
      {
        key: 6,
        message: '天水讼卦'
      },
      {
        key: 7,
        message: '地水师卦'
      },
      {
        key: 8,
        message: '水地比卦'
      },
      {
        key: 9,
        message: '风天小畜卦'
      },
      {
        key: 10,
        message: '天泽履卦'
      },
      {
        key: 11,
        message: '地天泰卦'
      },
      {
        key: 12,
        message: '天地否卦'
      },
      {
        key: 13,
        message: '天火同人卦'
      },
      {
        key: 14,
        message: '火天大有卦'
      },
      {
        key: 15,
        message: '地山谦卦'
      },
      {
        key: 16,
        message: '雷地豫卦'
      },
      {
        key: 17,
        message: '泽雷随卦'
      },
      {
        key: 18,
        message: '山风蛊卦'
      },
      {
        key: 19,
        message: '地泽临卦'
      },
      {
        key: 20,
        message: '风地观卦'
      },
      {
        key: 21,
        message: '火雷噬嗑卦'
      },
      {
        key: 22,
        message: '山火贲卦'
      },
      {
        key: 23,
        message: '山地剥卦'
      },
      {
        key: 24,
        message: '地雷复卦'
      },
      {
        key: 25,
        message: '天雷无妄卦'
      },
      {
        key: 26,
        message: '山天大畜卦'
      },
      {
        key: 27,
        message: '山雷颐卦'
      },
      {
        key: 28,
        message: '泽风大过卦'
      },
      {
        key: 29,
        message: '坎代表水'
      },
      {
        key: 30,
        message: '离代表火'
      },
      {
        key: 31,
        message: '泽山咸卦'
      },
      {
        key: 32,
        message: '雷风恒卦'
      },
      {
        key: 33,
        message: '天山遁卦'
      },
      {
        key: 34,
        message: '雷天大壮卦'
      },
      {
        key: 35,
        message: '火地晋卦'
      },

      {
        key: 36,
        message: '地火明夷卦'
      },
      {
        key: 37,
        message: '风火家人卦'
      },
      {
        key: 38,
        message: '火泽睽卦'
      },
      {
        key: 39,
        message: '水山蹇卦'
      },
      {
        key: 40,
        message: '雷水解卦'
      },
      {
        key: 41,
        message: '山泽损卦'
      },
      {
        key: 42,
        message: '风雷益卦'
      },
      {
        key: 43,
        message: '泽天夬卦'
      },
      {
        key: 44,
        message: '天风姤卦'
      },
      {
        key: 45,
        message: '泽地萃卦'
      },
      {
        key: 46,
        message: '地风升卦'
      },
      {
        key: 47,
        message: '泽水困卦'
      },
      {
        key: 48,
        message: '水风井卦'
      },
      {
        key: 49,
        message: '泽火革卦'
      },
      {
        key: 50,
        message: '火风鼎卦'
      },


      {
        key: 51,
        message: '震代表雷'
      },

      {
        key: 52,
        message: '艮代表山'
      },

      {
        key: 53,
        message: '风山渐卦'
      },
      {
        key: 54,
        message: '雷泽归妹卦'
      },
      {
        key: 55,
        message: '雷火丰卦'
      },
      {
        key: 56,
        message: '火山旅卦'
      },
      {
        key: 57,
        message: '巽代表风'
      },
      {
        key: 58,
        message: '兑代表泽'
      },
      {
        key: 59,
        message: '风水涣卦'
      },
      {
        key: 60,
        message: '水泽节卦'
      },
      {
        key: 61,
        message: '风泽中孚卦'
      },
      {
        key: 62,
        message: '雷山小过卦'
      },
      {
        key: 63,
        message: '水火既济卦'
      },
      {
        key: 64,
        message: '火水未济卦'
      },











    ]
  },
  go: function (e) {
    let id = e.currentTarget.dataset.id
    // console.log(e.currentTarget.dataset.id)

    wx.navigateTo({
      url: '../zhouyi1/t1?id=' + id
    })

  },
  ceshi: function () {
    // console.log(33333333)
    let id = Math.ceil(Math.random() * 64);
    wx.navigateTo({
      url: '../zhouyi1/t1?id=' + id
    })

  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    if (typeof this.getTabBar == "function" && this.getTabBar()) {
      this.getTabBar().setData({
        selected: 0
      })
    }
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})